package com.wx.service.impl;

import com.wx.entity.SysRangeHospital;
import com.wx.mapper.SysRangeHospitalMapper;
import com.wx.service.SysRangeHospitalService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


/**
 * <p>Title:      SysRangeHospitalServiceImpl. </p>
 * <p>Description 范围医院的关系表 </p>
 * <p>Copyright: Copyright (c) 2016</p>
 * <p>Company:    医百科技有限公司 </p>
 *
 * @author         yangwensheng@100doc.com.cn
 * @since      2021-03-22 10:51:46
 */
@Service
public class SysRangeHospitalServiceImpl extends BaseServiceImpl<SysRangeHospital> implements SysRangeHospitalService {

    @Resource
    private SysRangeHospitalMapper sysRangeHospitalMapper;


    @Override
    public List<SysRangeHospital> listPage(SysRangeHospital sysRangeHospital){
        return sysRangeHospitalMapper.select(sysRangeHospital);
    }

    @Override
    public SysRangeHospital selectByHospitalId(String hospitalId) {
        return sysRangeHospitalMapper.selectByHospitalId(hospitalId);
    }

    @Override
    public List<SysRangeHospital> selectByRangeIds(List<String> rangeIds) {
        return sysRangeHospitalMapper.selectByRangeIds(rangeIds);
    }

    @Override
    public int deleteByRangeId(String rangeId) {
        return sysRangeHospitalMapper.deleteByRangeId(rangeId);
    }


}
